KS Script | Import CSV for keyframe

Hi everyone,

I’ve already wrote a script to extract animated camera info to a csv file from KS to use them in another software, but I’m wondering if it should be a way to make the reverse. Build a camera motion in another software (blender for exemple) where it’s much easier to manage camera path, then export csv and import datas inside keyshot as camera keyframe animation.

I’ve checked the scripting documentation but I’ve found nothing about animation editing.

Does someone has any idea ?

Thanks.

The blender KeyShot plug-in would transfer the camera to KeyShot.

Hi Marco,

Yes the blender plugin transfer the camera but the transfert seams to not include camera animation.
Does it need some setting that I could miss ?

Thanks.

Does then fbx work, or transfer camera animation?
Reference https://manuals.keyshot.com/keyshot2024/manual/supported-file-formats.html

Hi,

Yes I can transfer camera info through an FBX. About animation, transformations keyframes are transfered yes, but with blender’s up axis is Z and KS is Y, I assume that is why rotations and positions are inconsistent.


Values are transformed too, I’m working on mm on both files and scales are fully messed up.
I’m trying different settings with the Blender’s export option but nothing seams to make a difference.
When I import the FBX file in blender, camera path and cone scale are good.
Do you know what settings I should apply to transfer a camera path from blender to KS ?

Thanks

Ok I finaly figuered how to transfer those datas. Keyshot seams to not import initial camera’s position, which is why the animated camera start from world origin.

1> Build your camera motion inside Blender and duplicate it when it’s finalized.
2> Apply all camera constraints at the first animation frame on the duplicated one.
3> Export the FBX file with X forward and Y up.
4> Import FBX file inside KS with ‘import camera’ and ‘Y up’ options checked. You should have 2 cameras imported, first with animation, second with the start position.
5> Copy animation from the first one, then paste it on second one. It should works.

Hope that will help someone else.

Best.

1 Like